Skip to content

Conversation

@febo
Copy link
Collaborator

@febo febo commented Apr 7, 2025

Problem

Currently, pinocchio defines its own (zero-copy) Instruction and AccountMeta structs. The name clash makes it confusing to write code that interacts with both Solana SDK and pinocchio.

Solution

Use the types from the new solana-instruction-view crate in Solana SDK instead. While this is a breaking change since the type has a different name, it has the same characteristics of the current types, so there is no loss of efficiency. The dependency is behind a "cpi" feature.

Note that this change removes the need of having the instruction related code in the main pinocchio crate – instead, client code can import solana-instruction-view directly to use the types.

@febo febo added the breaking PR contains breaking changes label Apr 7, 2025
@febo febo force-pushed the febo/solana-instruction-view branch from c3e49e7 to ffa484b Compare April 8, 2025 17:37
@febo febo force-pushed the febo/solana-account-view branch from 8aea106 to 97a11a6 Compare September 24, 2025 01:56
@febo febo force-pushed the febo/solana-instruction-view branch 2 times, most recently from 862a447 to 9ef10b8 Compare September 25, 2025 15:59
@febo febo force-pushed the febo/solana-account-view branch from 97a11a6 to 625eac9 Compare October 2, 2025 02:00
@febo febo force-pushed the febo/solana-instruction-view branch from 9ef10b8 to 32ab2e6 Compare October 3, 2025 13:21
@febo febo force-pushed the febo/solana-account-view branch from 76f05f4 to d9f9c45 Compare October 4, 2025 14:38
@febo febo force-pushed the febo/solana-instruction-view branch from 1a542b3 to f1e64ca Compare October 4, 2025 16:11
@febo febo mentioned this pull request Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking PR contains breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants